<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#workContent{
				display: flex;
				align-items: center;
			}
			#addWord{
				display: flex;
				justify-content: flex-end;
			}
		</style>
	</head>
	<body>
		<div id="">
			<div id="WorkAll">
			</div>
			<div id="addWord">
				<a href="#" onclick="onAddWork()">添加工作经历</a>				
			</div>
		</div>
	</body>
	<script type="text/javascript">
		function onAddWork(){
			var a = document.getElementById('WorkAll');
			var b = document.createElement('div');
			b.innerHTML =
			`公司名称：<input type="text"/>
			职位：<input type="text"/>
			<a href="#" onclick='ondelWork(event)'>删除工作经历</a>
			<br />
			<br />
			<div id="workContent">
				工作职责及工作内容描述：<textarea cols="100" rows="8"></textarea>				
			</div>
			<hr >`;
			a.appendChild(b);
		}
		function ondelWork(event){
			var a = event.target.parentElement;
			var b = document.getElementById('WorkAll');
			b.removeChild(a);
			console.log(a);
		}
		onload = function(){
			onAddWork();
		}
	</script>
</html>
